package com.car.main;

import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import com.bbs.crawl.ReplyCrawlPCAuto;
import com.bbs.dao.ReplyDaoOfPCAuto;

public class ReplyMainOfPCAuto {
	public static void main(String[] args) {
		ReplyDaoOfPCAuto daoOfPCAuto = new ReplyDaoOfPCAuto();
		List<Integer> uids = daoOfPCAuto.getUid();
		ExecutorService fixedThreadPool = Executors.newFixedThreadPool(30);
		for (Integer uid : uids) {
			fixedThreadPool.execute(new ReplyCrawlPCAuto(uid, daoOfPCAuto));
		}
		fixedThreadPool.shutdown();
	}
}
